package com.lhkj.ct.meta.modules.gauge.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
  * <p>
  *     描述：题目类型
  * </p>
  */
public enum QuestionType implements IEnum<String> {

    radio("radio","单选题"),

    checkbox("checkbox","多选题"),

    text("text","填空题"),

    number("number","数字填空"),

    textarea("textarea","简答题"),

    @Deprecated
    date("date","日期题"),

    @Deprecated
    complex("complex","综合题");

    @EnumValue
    private final String code;

    private final String desc;

    QuestionType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
